<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('科目分类')}:</label>
        <div class="col-xs-12 col-sm-8">
	    <!--
            <input id="c-category_id" data-rule="required" class="form-control" name="row[category_id]" type="text" value="{$row.category_id}">
	    -->

	    <select id="c-category_id" data-rule="required" class="form-control selectpicker" name="row[category_id]">
                {foreach $parentList as $vo}
                <option value="{$vo.id}" {in name="vo.id" value="$row['category_id']" }selected{/in} >{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('科目名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subject_name" data-rule="required" class="form-control" name="row[subject_name]" type="text" value="{$row.subject_name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('专业代码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subject_code" class="form-control" name="row[subject_code]" type="text" value="{$row.subject_code}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">题型分类</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[question_category_id]" id="" class="form-control">
                <option value="">请选择</option>
                {volist name="questionType" id="item"}
                <option value="{$item.category_id}" {$item.checked}>{$item.category_name}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('英文名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-en_name" data-rule="required" class="form-control" name="row[en_name]" type="text" value="{$row.en_name}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('简称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-short_name" data-rule="required" class="form-control" name="row[short_name]" type="text" value="{$row.short_name}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('班次')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-package_ids" data-field="package_name" data-source="package/index" data-params="" data-multiple="true" class="form-control selectpage" name="row[package_ids]" type="text" value="{$row.package_ids}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('科目信息')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[content_json]">
                <dd>
                    <ins>{:__('名字')}</ins>
                    <ins>{:__('内容')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[content_json]" class="form-control hide" cols="30" rows="5">{$row.content_json|htmlentities}</textarea>
            </dl>


        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否显示')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('Yes'), '0'=>__('No')],$row['status'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('考试大纲')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-synopsis" class="form-control" name="row[synopsis]" type="text" placeholder="请输入考试大纲id" value="{$row.synopsis}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('考试指南')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-guide" class="form-control" name="row[guide]" type="text" placeholder="请输入考试指南id" value="{$row.guide}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
